package com.kancy.learn.rpc.rmi.registry;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

/**
 * @author kancy
 * @version 1.0
 * @date 2019/1/31 10:51
 */
public class RegistryApplication {
    public static void main(String[] args) {
        try {
            LocateRegistry.createRegistry(9001);
            System.out.println("注册中心启动成功，Listening Port：9001！");

            while (true);
        } catch (RemoteException e) {
            System.out.println("注册中心启动失败！");
        }
    }
}
